#include <chrono>
#include <ctime>
#include <iostream>
#include <ratio>

int main() {
  using std::chrono::system_clock;

  // 定义时间段为 1 天
  std::chrono::duration<int, std::ratio<60 * 60 * 24>> one_day(1);
  // 获取当前时间点对象
  system_clock::time_point today = system_clock::now();
  // 计算明天的时间点
  system_clock::time_point tomorrow = today + one_day;

  std::time_t tt;
  // 转换时间为时间点
  tt = system_clock::to_time_t(today);
  std::cout << "今天日期: " << ctime(&tt);

  tt = system_clock::to_time_t(tomorrow);
  std::cout << "明天日期: " << ctime(&tt);

  return 0;
}
